﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using Rosetta.Default.AddIns.Text;

namespace Rosetta.Tests.Default
{
    [TestClass]
    public class StringInputterTests
    {
        [TestMethod]
        public void TestContext()
        {
            IInputter inputter = new StringInputter();

            inputter.UseContext("Hello World");
            Assert.AreEqual("Hello World", inputter.Get<string>("GetString"));

            inputter.UseContext("Hello");
            Assert.AreEqual("Hello", inputter.Get<string>("GetString"));
        }
    }
}